export default class StrUtil {
  static randomString(len = 32) {
    const chars = '0123456789'
    /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/
    const maxPos = chars.length
    let pwd = ''
    for (let i = 0; i < len; i++) {
      pwd += chars.charAt(Math.floor(Math.random() * maxPos))
    }
    return pwd
  }

  static isBlank(str) {
    return !str || !str.trim()
  }

  static isNotBlank(str) {
    return !this.isBlank(str)
  }

  static join(sep, ...args) {
    return args.join(sep)
  }
}
